package com.linkelee.server.controller.sys;


import com.linkelee.api.model.base.JsonResult;
import com.linkelee.api.service.sys.ISysLogService;
import com.linkelee.api.util.PageUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;


/**
 * 系统日志
 *
 * @author lsl 154751575@qq.com
 */
@Controller
@RequestMapping("/sys/log")
public class SysLogController {
	@Autowired
	private ISysLogService sysLogService;
	
	/**
	 * 列表
	 */
	@ResponseBody
	@GetMapping("/list")
	@RequiresPermissions("sys:log:list")
	public JsonResult list(@RequestParam Map<String, Object> params){
		PageUtils page = sysLogService.queryPage(params);
		return JsonResult.ok().put("page", page);
	}
	
}
